package pers.vic.widget;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalTime;

/**
 * @description: 启动类
 * @author Vic.xu
 * @date: 2020年5月6日下午3:12:43
 */
@SpringBootApplication
@EnableScheduling
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @RestController
    class Index {

        @GetMapping({"", "/"})
        public String index() {
            return "welcome to idea-docker" + LocalTime.now();
        }
    }

}
